package com.vogue.supplymall.account.domain.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.vogue.ssm.database.dao.BaseDao;
import com.vogue.supplymall.account.domain.dao.BaseCategoryDao;
import com.vogue.supplymall.account.domain.model.BaseCategory;
import com.vogue.supplymall.account.domain.service.BaseCategoryService;

@Service("baseCategoryService")
public class BaseCategoryServiceImpl extends BaseServiceImpl<BaseCategory, Long> implements BaseCategoryService{

	private BaseCategoryDao baseCategoryDao;
	
	public BaseCategoryServiceImpl(BaseDao<BaseCategory, Long> baseDao) {
		super(baseDao);
		baseCategoryDao=(BaseCategoryDao) baseDao;
	}

	@Override
	public List<Map<String, Object>> getAllCategory() {
		String sql=baseCategoryDao.getAllCategorySql();
		List<Map<String, Object>> categoryList=this.query(sql);
		return categoryList;
	}

}
